package po;

public class ChooseCoursePO {
	private int studentID = 0;
	private int courseID = 0;
	private int score = 0;

	public ChooseCoursePO(int studentID, int courseID, int score) {
		this.studentID = studentID;
		this.courseID = courseID;
		this.score = score;
	}

	public ChooseCoursePO(int studentID, int courseID) {
		this.studentID = studentID;
		this.courseID = courseID;
		this.score = -1;
	}

	public int getStudentID() {
		return studentID;
	}

	public void setStudentID(int newStudentID) {
		studentID = newStudentID;
	}

	public int getCourseID() {
		return courseID;
	}

	public void setCourseID(int newCourseID) {
		courseID = newCourseID;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int newScore) {
		score = newScore;
	}

	public String[] toList() {
		String[] result = new String[3];
		result[0] = studentID + "";
		result[1] = courseID + "";
		result[2] = score + "";
		return result;
	}
}
